<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>clearfix</title>
    <style>
        .clearfix::after {
            content:"";
            clear: both;
            display: block;
        }
        .floated {
            float: left;
            padding: 4px;
        }
    </style>
</head>
<body>
    <div class="clearfix">
        <div class="floated">float a</div>
        <div class="floated">float b</div>
        <div class="floated">float c</div>
    </div>
</body>
</html>